package medium

func removeStars(s string) string {
	var stack []byte

	for i := range s {
		if s[i] == '*' {

			stack = stack[:len(stack)-1]
		} else {
			stack = append(stack, s[i])
		}
	}

	return string(stack)
}
